/*
* 入口js
* */

import React from 'react';
import ReactDOM from "react-dom";
import { Provider } from "react-redux";

import App from "./App";
// import store from "./redux/store";

// 这是数据持久化
import { store, persistor } from "./redux/configureStore";
import { PersistGate } from "redux-persist/integration/react";

// 使用.env
// require('dotenv').config();

const root = document.getElementById('root');
ReactDOM.render((
	<Provider store={store}>
		<PersistGate loading={null} persistor={persistor}>
			<App />
		</PersistGate>
	</Provider>), root);